The phrase "sunny spells" refers to brief periods of sunshine that occur intermittently in an otherwise cloudy or overcast day. It is a metaphorical expression that can be used to describe any situation where there are brief moments of happiness or success amidst overall gloominess, difficulty or challenges.